package model_view_controller;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author liwuji
 * @date 2024/1/9
 * @desc
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StudentController {
    private Student model;
    private StudentView view;
    public void updateView(){
        view.printStudentDetails(model.getName(), model.getRollNo());
    }
    public void setStudentName(String name){
        model.setName(name);

    }
    public String getStudentName(){
        return model.getName();
    }
}
